import vuex from 'vuex'
import vue from 'vue'
vue.use(vuex)
let store = new vuex.Store({
  state:{
    count:0,
    name:'cloud',
  },
  mutations:{
    incr(state){
      state.count++;
    },
    decr(state){
      state.count--;
    }
  }
});

export default store